package com.atguigu.gmall.all.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户认证接口
 *
 * @program: gmall-parent
 * @author: Mr.Zhuo
 * @create: 2022-04-13 11:42
 **/
@Controller
public class PassportController {

    @GetMapping("login.html")
    public String login(HttpServletRequest request) {

        // 获取每个页面点击登录  之后访问的地方
        String originUrl = request.getParameter("originUrl");
        request.setAttribute("originUrl",originUrl);
        return "login";
    }
}
